import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';

// 初始化
import set from '@dfeidao/atom-web/local/set';
import error from '@dfeidao/atom-web/msgbox/error';
import render from '@dfeidao/atom-web/render/render';
import show from '@dfeidao/atom-web/ui/show';
import P02 from './P02';

export default async function a013(fd: IFeidaoAiBrowserComponent, args: { _id: string, name: string, _no: string }) {
	const data = args;
	set(fd, '_id', data._id);
	set(fd, 'name', data.name);
	set(fd, '_no', data._no);
	const no = data._no;
	if (!no) {
		error("请选择一行数据");
		return;
	}
	show(fd.data.node);
	fd.data.node.classList.remove('display-n');
	render(fd, data, P02, 'P02', 'inner');
}
